/*
*
* SPDX-License-Identifier: GPL-2.0
*
* Copyright (C) 2011-2018 ARM or its affiliates
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2.
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* for more details.
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/

#if !defined(__IMX335_SENSOR_H__)
#define __IMX335_SENSOR_H__


/*-----------------------------------------------------------------------------
Initialization sequence - do not edit
-----------------------------------------------------------------------------*/

#include "sensor_init.h"

/* mclk:37.125MHz */

/*
 * bayer = BAYER_RGGB
 */
static acam_reg_t linear_1080p_30fps_891Mbps_4lane_12bits[] = {
    {0x3000, 0x01, 0xff, 1}, /* standby */
    {0xFFFF, 5},

	{ 0x300C, 0x5B, 0xff, 1 },
	{ 0x300D, 0x40, 0xff, 1 },
	{ 0x3018, 0x04, 0xff, 1 },
	{ 0x302C, 0x8C, 0xff, 1 },
	{ 0x302D, 0x01, 0xff, 1 },
	{ 0x302E, 0x80, 0xff, 1 },
	{ 0x302F, 0x07, 0xff, 1 },
	{ 0x3056, 0x3C, 0xff, 1 },
	{ 0x3057, 0x04, 0xff, 1 },
	{ 0x3074, 0x20, 0xff, 1 },
	{ 0x3075, 0x04, 0xff, 1 },
	{ 0x3076, 0x78, 0xff, 1 },
	{ 0x3077, 0x08, 0xff, 1 },
	{ 0x30C6, 0x12, 0xff, 1 },
	{ 0x30CE, 0x64, 0xff, 1 },
	{ 0x30D8, 0x68, 0xff, 1 },
	{ 0x30D9, 0x0D, 0xff, 1 },
	{ 0x314C, 0xC0, 0xff, 1 },
	{ 0x315A, 0x06, 0xff, 1 },
	{ 0x316A, 0x7E, 0xff, 1 },
	{ 0x319E, 0x02, 0xff, 1 },
	{ 0x31A1, 0x00, 0xff, 1 },
	{ 0x3288, 0x21, 0xff, 1 },
	{ 0x328A, 0x02, 0xff, 1 },
	{ 0x3414, 0x05, 0xff, 1 },
	{ 0x3416, 0x18, 0xff, 1 },
	{ 0x3648, 0x01, 0xff, 1 },
	{ 0x364A, 0x04, 0xff, 1 },
	{ 0x364C, 0x04, 0xff, 1 },
	{ 0x3678, 0x01, 0xff, 1 },
	{ 0x367C, 0x31, 0xff, 1 },
	{ 0x367E, 0x31, 0xff, 1 },
	{ 0x3706, 0x10, 0xff, 1 },
	{ 0x3708, 0x03, 0xff, 1 },
	{ 0x3714, 0x02, 0xff, 1 },
	{ 0x3715, 0x02, 0xff, 1 },
	{ 0x3716, 0x01, 0xff, 1 },
	{ 0x3717, 0x03, 0xff, 1 },
	{ 0x371C, 0x3D, 0xff, 1 },
	{ 0x371D, 0x3F, 0xff, 1 },
	{ 0x372C, 0x00, 0xff, 1 },
	{ 0x372D, 0x00, 0xff, 1 },
	{ 0x372E, 0x46, 0xff, 1 },
	{ 0x372F, 0x00, 0xff, 1 },
	{ 0x3730, 0x89, 0xff, 1 },
	{ 0x3731, 0x00, 0xff, 1 },
	{ 0x3732, 0x08, 0xff, 1 },
	{ 0x3733, 0x01, 0xff, 1 },
	{ 0x3734, 0xFE, 0xff, 1 },
	{ 0x3735, 0x05, 0xff, 1 },
	{ 0x3740, 0x02, 0xff, 1 },
	{ 0x375D, 0x00, 0xff, 1 },
	{ 0x375E, 0x00, 0xff, 1 },
	{ 0x375F, 0x11, 0xff, 1 },
	{ 0x3760, 0x01, 0xff, 1 },
	{ 0x3768, 0x1B, 0xff, 1 },
	{ 0x3769, 0x1B, 0xff, 1 },
	{ 0x376A, 0x1B, 0xff, 1 },
	{ 0x376B, 0x1B, 0xff, 1 },
	{ 0x376C, 0x1A, 0xff, 1 },
	{ 0x376D, 0x17, 0xff, 1 },
	{ 0x376E, 0x0F, 0xff, 1 },
	{ 0x3776, 0x00, 0xff, 1 },
	{ 0x3777, 0x00, 0xff, 1 },
	{ 0x3778, 0x46, 0xff, 1 },
	{ 0x3779, 0x00, 0xff, 1 },
	{ 0x377A, 0x89, 0xff, 1 },
	{ 0x377B, 0x00, 0xff, 1 },
	{ 0x377C, 0x08, 0xff, 1 },
	{ 0x377D, 0x01, 0xff, 1 },
	{ 0x377E, 0x23, 0xff, 1 },
	{ 0x377F, 0x02, 0xff, 1 },
	{ 0x3780, 0xD9, 0xff, 1 },
	{ 0x3781, 0x03, 0xff, 1 },
	{ 0x3782, 0xF5, 0xff, 1 },
	{ 0x3783, 0x06, 0xff, 1 },
	{ 0x3784, 0xA5, 0xff, 1 },
	{ 0x3788, 0x0F, 0xff, 1 },
	{ 0x378A, 0xD9, 0xff, 1 },
	{ 0x378B, 0x03, 0xff, 1 },
	{ 0x378C, 0xEB, 0xff, 1 },
	{ 0x378D, 0x05, 0xff, 1 },
	{ 0x378E, 0x87, 0xff, 1 },
	{ 0x378F, 0x06, 0xff, 1 },
	{ 0x3790, 0xF5, 0xff, 1 },
	{ 0x3792, 0x43, 0xff, 1 },
	{ 0x3794, 0x7A, 0xff, 1 },
	{ 0x3796, 0xA1, 0xff, 1 },
	{ 0x3A18, 0x7F, 0xff, 1 },
	{ 0x3A1A, 0x37, 0xff, 1 },
	{ 0x3A1C, 0x37, 0xff, 1 },
	{ 0x3A1E, 0xF7, 0xff, 1 },
	{ 0x3A1F, 0x00, 0xff, 1 },
	{ 0x3A20, 0x3F, 0xff, 1 },
	{ 0x3A22, 0x6F, 0xff, 1 },
	{ 0x3A24, 0x3F, 0xff, 1 },
	{ 0x3A26, 0x5F, 0xff, 1 },
	{ 0x3A28, 0x2F, 0xff, 1 },

	{0xFFFF, 1},
	{0x3002, 0x00, 0xff, 1}, /* master mode start */

    {0x0000, 0x0000, 0x0000, 0x0000},
};

/*
 * bayer = BAYER_GBRG
 */
static acam_reg_t linear_5M_30fps_891Mbps_4lane_12bits[] = {
    //{0x3003, 0x01, 0xff, 1}, /* sw_reset */
    //{0xFFFF, 200},
    {0x3000, 0x01, 0xff, 1}, /* standby */
    {0x3002, 0x00, 0xff, 1}, /* XTMSTA */

	{0x300C, 0x5B, 0xff, 1},
	{0x300D, 0x40, 0xff, 1},
    {0x3030, 0x94, 0xff, 1}, //VTS
    {0x3031, 0x11, 0xff, 1},
    {0x3034, 0x26, 0xff, 1}, //HTS
    {0x3035, 0x02, 0xff, 1},
	{0x314C, 0xC0, 0xff, 1},
	{0x315A, 0x06, 0xff, 1},
	{0x316A, 0x7E, 0xff, 1},
	{0x319E, 0x02, 0xff, 1},
	{0x31A1, 0x00, 0xff, 1},
	{0x3288, 0x21, 0xff, 1},
	{0x328A, 0x02, 0xff, 1},
	{0x3414, 0x05, 0xff, 1},
	{0x3416, 0x18, 0xff, 1},
	{0x3648, 0x01, 0xff, 1},
	{0x364A, 0x04, 0xff, 1},
	{0x364C, 0x04, 0xff, 1},
	{0x3678, 0x01, 0xff, 1},
	{0x367C, 0x31, 0xff, 1},
	{0x367E, 0x31, 0xff, 1},
	{0x3706, 0x10, 0xff, 1},
	{0x3708, 0x03, 0xff, 1},
	{0x3714, 0x02, 0xff, 1},
	{0x3715, 0x02, 0xff, 1},
	{0x3716, 0x01, 0xff, 1},
	{0x3717, 0x03, 0xff, 1},
	{0x371C, 0x3D, 0xff, 1},
	{0x371D, 0x3F, 0xff, 1},
	{0x372C, 0x00, 0xff, 1},
	{0x372D, 0x00, 0xff, 1},
	{0x372E, 0x46, 0xff, 1},
	{0x372F, 0x00, 0xff, 1},
	{0x3730, 0x89, 0xff, 1},
	{0x3731, 0x00, 0xff, 1},
	{0x3732, 0x08, 0xff, 1},
	{0x3733, 0x01, 0xff, 1},
	{0x3734, 0xFE, 0xff, 1},
	{0x3735, 0x05, 0xff, 1},
	{0x3740, 0x02, 0xff, 1},
	{0x375D, 0x00, 0xff, 1},
	{0x375E, 0x00, 0xff, 1},
	{0x375F, 0x11, 0xff, 1},
	{0x3760, 0x01, 0xff, 1},
	{0x3768, 0x1B, 0xff, 1},
	{0x3769, 0x1B, 0xff, 1},
	{0x376A, 0x1B, 0xff, 1},
	{0x376B, 0x1B, 0xff, 1},
	{0x376C, 0x1A, 0xff, 1},
	{0x376D, 0x17, 0xff, 1},
	{0x376E, 0x0F, 0xff, 1},
	{0x3776, 0x00, 0xff, 1},
	{0x3777, 0x00, 0xff, 1},
	{0x3778, 0x46, 0xff, 1},
	{0x3779, 0x00, 0xff, 1},
	{0x377A, 0x89, 0xff, 1},
	{0x377B, 0x00, 0xff, 1},
	{0x377C, 0x08, 0xff, 1},
	{0x377D, 0x01, 0xff, 1},
	{0x377E, 0x23, 0xff, 1},
	{0x377F, 0x02, 0xff, 1},
	{0x3780, 0xD9, 0xff, 1},
	{0x3781, 0x03, 0xff, 1},
	{0x3782, 0xF5, 0xff, 1},
	{0x3783, 0x06, 0xff, 1},
	{0x3784, 0xA5, 0xff, 1},
	{0x3788, 0x0F, 0xff, 1},
	{0x378A, 0xD9, 0xff, 1},
	{0x378B, 0x03, 0xff, 1},
	{0x378C, 0xEB, 0xff, 1},
	{0x378D, 0x05, 0xff, 1},
	{0x378E, 0x87, 0xff, 1},
	{0x378F, 0x06, 0xff, 1},
	{0x3790, 0xF5, 0xff, 1},
	{0x3792, 0x43, 0xff, 1},
	{0x3794, 0x7A, 0xff, 1},
	{0x3796, 0xA1, 0xff, 1},
	{0x3A18, 0x7F, 0xff, 1},
	{0x3A1A, 0x37, 0xff, 1},
	{0x3A1C, 0x37, 0xff, 1},
	{0x3A1E, 0xF7, 0xff, 1},
	{0x3A1F, 0x00, 0xff, 1},
	{0x3A20, 0x3F, 0xff, 1},
	{0x3A22, 0x6F, 0xff, 1},
	{0x3A24, 0x3F, 0xff, 1},
	{0x3A26, 0x5F, 0xff, 1},
	{0x3A28, 0x2F, 0xff, 1},

    {0xFFFF, 1},
    {0x3002, 0x00, 0xff, 1}, /* master mode start */
    {0x0000, 0x0000, 0x0000, 0x0000}
};

/*
 * bayer = BAYER_GBRG
 */
static acam_reg_t dol_5M_30fps_1188Mbps_4lane_10bits[] = {
    //{0x3003, 0x01, 0xff, 1}, /* sw_reset */
    //{0xFFFF, 200},
    {0x3000, 0x01, 0xff, 1}, /* standby */
    {0x3002, 0x00, 0xff, 1}, /* XTMSTA */

	{0x300C, 0x5B, 0xff, 1},
	{0x300D, 0x40, 0xff, 1},
    {0x3030, 0x94, 0xff, 1}, //VTS
    {0x3031, 0x11, 0xff, 1},
	{0x3034, 0x13, 0xff, 1}, //HTS
	{0x3035, 0x01, 0xff, 1},
	{0x3048, 0x01, 0xff, 1},
	{0x3049, 0x01, 0xff, 1},
	{0x304A, 0x04, 0xff, 1},
	{0x304B, 0x03, 0xff, 1},
	{0x304C, 0x00, 0xff, 1},
	{0x3050, 0x00, 0xff, 1},
	{0x3056, 0x47, 0xff, 1},
	{0x3057, 0x08, 0xff, 1},
	{0x3058, 0x40, 0xff, 1},
	{0x3059, 0x02, 0xff, 1},
	{0x3068, 0x22, 0xff, 1},
	{0x3069, 0x02, 0xff, 1},
	{0x315A, 0x02, 0xff, 1},
	{0x316A, 0x7E, 0xff, 1},
	{0x319D, 0x00, 0xff, 1},
	{0x319F, 0x02, 0xff, 1},
	{0x31A1, 0x00, 0xff, 1},
	{0x31D7, 0x01, 0xff, 1},
	{0x3288, 0x21, 0xff, 1},
	{0x328A, 0x02, 0xff, 1},
	{0x3414, 0x05, 0xff, 1},
	{0x3416, 0x18, 0xff, 1},
	{0x341C, 0xFF, 0xff, 1},
	{0x341D, 0x01, 0xff, 1},
	{0x3648, 0x01, 0xff, 1},
	{0x364A, 0x04, 0xff, 1},
	{0x364C, 0x04, 0xff, 1},
	{0x3678, 0x01, 0xff, 1},
	{0x367C, 0x31, 0xff, 1},
	{0x367E, 0x31, 0xff, 1},
	{0x3706, 0x10, 0xff, 1},
	{0x3708, 0x03, 0xff, 1},
	{0x3714, 0x02, 0xff, 1},
	{0x3715, 0x02, 0xff, 1},
	{0x3716, 0x01, 0xff, 1},
	{0x3717, 0x03, 0xff, 1},
	{0x371C, 0x3D, 0xff, 1},
	{0x371D, 0x3F, 0xff, 1},
	{0x372C, 0x00, 0xff, 1},
	{0x372D, 0x00, 0xff, 1},
	{0x372E, 0x46, 0xff, 1},
	{0x372F, 0x00, 0xff, 1},
	{0x3730, 0x89, 0xff, 1},
	{0x3731, 0x00, 0xff, 1},
	{0x3732, 0x08, 0xff, 1},
	{0x3733, 0x01, 0xff, 1},
	{0x3734, 0xFE, 0xff, 1},
	{0x3735, 0x05, 0xff, 1},
	{0x3740, 0x02, 0xff, 1},
	{0x375D, 0x00, 0xff, 1},
	{0x375E, 0x00, 0xff, 1},
	{0x375F, 0x11, 0xff, 1},
	{0x3760, 0x01, 0xff, 1},
	{0x3768, 0x1B, 0xff, 1},
	{0x3769, 0x1B, 0xff, 1},
	{0x376A, 0x1B, 0xff, 1},
	{0x376B, 0x1B, 0xff, 1},
	{0x376C, 0x1A, 0xff, 1},
	{0x376D, 0x17, 0xff, 1},
	{0x376E, 0x0F, 0xff, 1},
	{0x3776, 0x00, 0xff, 1},
	{0x3777, 0x00, 0xff, 1},
	{0x3778, 0x46, 0xff, 1},
	{0x3779, 0x00, 0xff, 1},
	{0x377A, 0x89, 0xff, 1},
	{0x377B, 0x00, 0xff, 1},
	{0x377C, 0x08, 0xff, 1},
	{0x377D, 0x01, 0xff, 1},
	{0x377E, 0x23, 0xff, 1},
	{0x377F, 0x02, 0xff, 1},
	{0x3780, 0xD9, 0xff, 1},
	{0x3781, 0x03, 0xff, 1},
	{0x3782, 0xF5, 0xff, 1},
	{0x3783, 0x06, 0xff, 1},
	{0x3784, 0xA5, 0xff, 1},
	{0x3788, 0x0F, 0xff, 1},
	{0x378A, 0xD9, 0xff, 1},
	{0x378B, 0x03, 0xff, 1},
	{0x378C, 0xEB, 0xff, 1},
	{0x378D, 0x05, 0xff, 1},
	{0x378E, 0x87, 0xff, 1},
	{0x378F, 0x06, 0xff, 1},
	{0x3790, 0xF5, 0xff, 1},
	{0x3792, 0x43, 0xff, 1},
	{0x3794, 0x7A, 0xff, 1},
	{0x3796, 0xA1, 0xff, 1},

    {0xFFFF, 1},
    {0x3002, 0x00, 0xff, 1}, /* master mode start */
    {0x0000, 0x0000, 0x0000, 0x0000},
};


static acam_reg_t dol_1080p_30fps_4lane_10bits[] = {
    //{0x3003, 0x01, 0xff, 1}, /* sw_reset */
    //{0xFFFF, 200},
    {0x3000, 0x01, 0xff, 1}, /* standby */
    {0xFFFF, 1},
    {0x3002, 0x00, 0xff, 1}, /* XTMSTA */

	{0x300C,0x5B,0xff,1},
	{0x300D,0x40,0xff,1},
	{0x3018,0x04,0xff,1},
	{0x302C,0x8C,0xff,1},
	{0x302D,0x01,0xff,1},
	{0x302E,0x80,0xff,1},
	{0x302F,0x07,0xff,1},
	{0x3034,0x13,0xff,1},
	{0x3035,0x01,0xff,1},
	{0x3048,0x01,0xff,1},
	{0x3049,0x01,0xff,1},
	{0x304A,0x04,0xff,1},
	{0x304B,0x03,0xff,1},
	{0x304C,0x00,0xff,1},
	{0x3050,0x00,0xff,1},
	{0x3056,0xD7,0xff,1},
	{0x3057,0x04,0xff,1},
	{0x3058,0x40,0xff,1},
	{0x3059,0x02,0xff,1},
	{0x3068,0x22,0xff,1},
	{0x3069,0x02,0xff,1},
	{0x3074,0x20,0xff,1},
	{0x3075,0x04,0xff,1},
	{0x3076,0x78,0xff,1},
	{0x3077,0x08,0xff,1},
	{0x30C6,0x12,0xff,1},
	{0x30CE,0x64,0xff,1},
	{0x30D8,0x68,0xff,1},
	{0x30D9,0x0D,0xff,1},
	{0x315A,0x02,0xff,1},
	{0x316A,0x7E,0xff,1},
	{0x319D,0x00,0xff,1},
	{0x319F,0x02,0xff,1},
	{0x31A1,0x00,0xff,1},
	{0x31D7,0x01,0xff,1},
	{0x3288,0x21,0xff,1},
	{0x328A,0x02,0xff,1},
	{0x3414,0x05,0xff,1},
	{0x3416,0x18,0xff,1},
	{0x341C,0xFF,0xff,1},
	{0x341D,0x01,0xff,1},
	{0x3648,0x01,0xff,1},
	{0x364A,0x04,0xff,1},
	{0x364C,0x04,0xff,1},
	{0x3678,0x01,0xff,1},
	{0x367C,0x31,0xff,1},
	{0x367E,0x31,0xff,1},
	{0x3706,0x10,0xff,1},
	{0x3708,0x03,0xff,1},
	{0x3714,0x02,0xff,1},
	{0x3715,0x02,0xff,1},
	{0x3716,0x01,0xff,1},
	{0x3717,0x03,0xff,1},
	{0x371C,0x3D,0xff,1},
	{0x371D,0x3F,0xff,1},
	{0x372C,0x00,0xff,1},
	{0x372D,0x00,0xff,1},
	{0x372E,0x46,0xff,1},
	{0x372F,0x00,0xff,1},
	{0x3730,0x89,0xff,1},
	{0x3731,0x00,0xff,1},
	{0x3732,0x08,0xff,1},
	{0x3733,0x01,0xff,1},
	{0x3734,0xFE,0xff,1},
	{0x3735,0x05,0xff,1},
	{0x3740,0x02,0xff,1},
	{0x375D,0x00,0xff,1},
	{0x375E,0x00,0xff,1},
	{0x375F,0x11,0xff,1},
	{0x3760,0x01,0xff,1},
	{0x3768,0x1B,0xff,1},
	{0x3769,0x1B,0xff,1},
	{0x376A,0x1B,0xff,1},
	{0x376B,0x1B,0xff,1},
	{0x376C,0x1A,0xff,1},
	{0x376D,0x17,0xff,1},
	{0x376E,0x0F,0xff,1},
	{0x3776,0x00,0xff,1},
	{0x3777,0x00,0xff,1},
	{0x3778,0x46,0xff,1},
	{0x3779,0x00,0xff,1},
	{0x377A,0x89,0xff,1},
	{0x377B,0x00,0xff,1},
	{0x377C,0x08,0xff,1},
	{0x377D,0x01,0xff,1},
	{0x377E,0x23,0xff,1},
	{0x377F,0x02,0xff,1},
	{0x3780,0xD9,0xff,1},
	{0x3781,0x03,0xff,1},
	{0x3782,0xF5,0xff,1},
	{0x3783,0x06,0xff,1},
	{0x3784,0xA5,0xff,1},
	{0x3788,0x0F,0xff,1},
	{0x378A,0xD9,0xff,1},
	{0x378B,0x03,0xff,1},
	{0x378C,0xEB,0xff,1},
	{0x378D,0x05,0xff,1},
	{0x378E,0x87,0xff,1},
	{0x378F,0x06,0xff,1},
	{0x3790,0xF5,0xff,1},
	{0x3792,0x43,0xff,1},
	{0x3794,0x7A,0xff,1},
	{0x3796,0xA1,0xff,1},

    {0xFFFF, 1},

    {0x3002, 0x00, 0xff, 1}, /* master mode start */
    {0x0000, 0x0000, 0x0000, 0x0000},
};
static acam_reg_t linear_5M_60fps_1188Mbps_4lane_10bits[] = {
	//{0x3003, 0x01, 0xff, 1}, /* sw_reset */
	//{0xFFFF, 200},
	{0x3000, 0x01, 0xff, 1}, /* standby */
	{0xFFFF, 1},
	{0x3002, 0x00, 0xff, 1}, /* XTMSTA */

	{0x300C,0x5B,0xff,1},
	{0x300D,0x40,0xff,1},
	{0x3034,0x13,0xff,1},
	{0x3035,0x01,0xff,1},
	{0x3050,0x00,0xff,1},
	{0x315A,0x02,0xff,1},
	{0x316A,0x7E,0xff,1},
	{0x319D,0x00,0xff,1},
	{0x31A1,0x00,0xff,1},
	{0x3288,0x21,0xff,1},
	{0x328A,0x02,0xff,1},
	{0x3414,0x05,0xff,1},
	{0x3416,0x18,0xff,1},
	{0x341C,0xFF,0xff,1},
	{0x341D,0x01,0xff,1},
	{0x3648,0x01,0xff,1},
	{0x364A,0x04,0xff,1},
	{0x364C,0x04,0xff,1},
	{0x3678,0x01,0xff,1},
	{0x367C,0x31,0xff,1},
	{0x367E,0x31,0xff,1},
	{0x3706,0x10,0xff,1},
	{0x3708,0x03,0xff,1},
	{0x3714,0x02,0xff,1},
	{0x3715,0x02,0xff,1},
	{0x3716,0x01,0xff,1},
	{0x3717,0x03,0xff,1},
	{0x371C,0x3D,0xff,1},
	{0x371D,0x3F,0xff,1},
	{0x372C,0x00,0xff,1},
	{0x372D,0x00,0xff,1},
	{0x372E,0x46,0xff,1},
	{0x372F,0x00,0xff,1},
	{0x3730,0x89,0xff,1},
	{0x3731,0x00,0xff,1},
	{0x3732,0x08,0xff,1},
	{0x3733,0x01,0xff,1},
	{0x3734,0xFE,0xff,1},
	{0x3735,0x05,0xff,1},
	{0x3740,0x02,0xff,1},
	{0x375D,0x00,0xff,1},
	{0x375E,0x00,0xff,1},
	{0x375F,0x11,0xff,1},
	{0x3760,0x01,0xff,1},
	{0x3768,0x1B,0xff,1},
	{0x3769,0x1B,0xff,1},
	{0x376A,0x1B,0xff,1},
	{0x376B,0x1B,0xff,1},
	{0x376C,0x1A,0xff,1},
	{0x376D,0x17,0xff,1},
	{0x376E,0x0F,0xff,1},
	{0x3776,0x00,0xff,1},
	{0x3777,0x00,0xff,1},
	{0x3778,0x46,0xff,1},
	{0x3779,0x00,0xff,1},
	{0x377A,0x89,0xff,1},
	{0x377B,0x00,0xff,1},
	{0x377C,0x08,0xff,1},
	{0x377D,0x01,0xff,1},
	{0x377E,0x23,0xff,1},
	{0x377F,0x02,0xff,1},
	{0x3780,0xD9,0xff,1},
	{0x3781,0x03,0xff,1},
	{0x3782,0xF5,0xff,1},
	{0x3783,0x06,0xff,1},
	{0x3784,0xA5,0xff,1},
	{0x3788,0x0F,0xff,1},
	{0x378A,0xD9,0xff,1},
	{0x378B,0x03,0xff,1},
	{0x378C,0xEB,0xff,1},
	{0x378D,0x05,0xff,1},
	{0x378E,0x87,0xff,1},
	{0x378F,0x06,0xff,1},
	{0x3790,0xF5,0xff,1},
	{0x3792,0x43,0xff,1},
	{0x3794,0x7A,0xff,1},
	{0x3796,0xA1,0xff,1},

	{0xFFFF, 1},

	{0x3002, 0x00, 0xff, 1}, /* master mode start */
	{0x0000, 0x0000, 0x0000, 0x0000},
};


static acam_reg_t settings_context_imx335[] = {
    //stop sequence - address is 0x0000
    { 0x0000, 0x0000, 0x0000, 0x0000 }
};

static const acam_reg_t *imx335_seq_table[] = {
    linear_1080p_30fps_891Mbps_4lane_12bits,
    dol_1080p_30fps_4lane_10bits,
    linear_5M_30fps_891Mbps_4lane_12bits,
    dol_5M_30fps_1188Mbps_4lane_10bits,
    linear_5M_60fps_1188Mbps_4lane_10bits,
};

static const acam_reg_t *isp_seq_table[] = {
    settings_context_imx335,
};

#define SENSOR_IMX335_SEQUENCE_DEFAULT_LINEAR_60FPS_DIFF    0
#define SENSOR_IMX335_SEQUENCE_DEFAULT_WDR_1080P_2DOL    1
#define SENSOR_IMX335_SEQUENCE_DEFAULT_LINEAR    0
#define SENSOR_IMX335_SEQUENCE_DEFAULT_WDR_720P    3
#define SENSOR_IMX335_SEQUENCE_DEFAULT_WDR_1080P    4
//#define SENSOR_IMX335_SEQUENCE_DEFAULT_WDR_1080P_DIFF    5
#define SENSOR_IMX335_SEQUENCE_DEFAULT_TEST_PATTERN    6

#define SENSOR_IMX335_CONTEXT_SEQ 0
#endif /* __IMX335_SENSOR_H__ */
